package com.demo.day406;

public class getSum_while {

    public static void getSum(){
        int a = 200;
        int b = 0;
        do {
            if ((a%100+(a-a%100*100)%10+(a-a%100*100-(a-a%100*100)%10*10))%3==0){
                b=b+a;
            }
            a--;
        }while (a>0);
        System.out.println(b);
    }

    public static void main(String[] args) {
        getSum();
    }
}
